<?php

namespace thinkct\library;

use app\common\model\ai\draw\Content as drawContentModel;

class DrawAI
{
    protected mixed $class;

    public function __construct($type)
    {
        $class = 'thinkct\\library\\draw\\' . ucfirst($type);
        $this->class = new $class();
    }

    public function start_task($data): array
    {
        return $this->class->start_task($data);
    }

    public function task_detail($data): array
    {
        return $this->class->task_detail($data);
    }
}